package com.yun.studyconsumer.receiver;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class DirectReceiverNew {

    @RabbitListener(queues = "StudyDirectQueue")
    @RabbitHandler
    public void process(Map<String,Object> msg){
        System.out.println("第二次：DirectReceiver消费者收到消息  : " + msg.toString());
    }
}
